 declare -a hostInfoDict
# 声明一个你的字典，字典的key表示你想登录的ssh，字典的value为你的ssh配置
hostInfoDict=(["liushuai"]="10.90.100.103 liushuai 574794581" ["ads"]="10.90.70.22 ads *()iop")
hostName="liushuai"
b=${hostInfoDict[${hostName}]}
echo ${b}
echo -e ${hostInfoDict[${hostName}]}

